package com.xkdx.guangguang.fragment.comment;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

import com.xkdx.guangguang.module.network.AbsAction;

public class BindSinaAction extends AbsAction {
	String userID, loginToken, SinaWeiboUserID, SinaWeiboNickName, SinaWeiboSex, SinaWeiboToken, SinaWeiboExpireTime;

	public BindSinaAction(String userID, String loginToken, String SinaWeiboUserID, String SinaWeiboNickName,
			String SinaWeiboSex, String SinaWeiboToken, String SinaWeiboExpireTime) {
		this.userID = userID;
		this.loginToken = loginToken;
		this.SinaWeiboExpireTime = SinaWeiboExpireTime;
		this.SinaWeiboNickName = SinaWeiboNickName;
		this.SinaWeiboSex = SinaWeiboSex;
		this.SinaWeiboToken = SinaWeiboToken;
		this.SinaWeiboUserID = SinaWeiboUserID;
	}

	@Override
	public void constructRequest() {
		HashMap<String, String> map = new HashMap<String, String>();
		map.put("DeviceID", "2");
		map.put("UserID", userID);
		map.put("LoginToken", loginToken);
		map.put("SinaWeiboUserID", SinaWeiboUserID);
		map.put("SinaWeiboNickName", SinaWeiboNickName);
		map.put("SinaWeiboSex", SinaWeiboSex);
		map.put("SinaWeiboToken", SinaWeiboToken);
		map.put("SinaWeiboExpireTime", SinaWeiboExpireTime);
		String json = constructJson(map);
		Parameter parameter = new Parameter("userInterface", "bindSinaWeibo", json);

		List<Parameter> list = new ArrayList<Parameter>();
		list.add(parameter);
		requestData = constructMod(list);

	}

}
